:root {
    --primary: #6b4f4a;    /* 青铜主色 */
    --secondary: #3e2723;  /* 深褐 */
    --paper: #f5f0e5;      /* 纸张底色 */
    --border: #9e8d89;     /* 边框色 */
}

body {
    font-family: '华文楷体', '楷体', serif;
    background: var(--paper) url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,50 Q40,25 60,50 Q80,75 80,50" fill="none" stroke="%239C8D89" stroke-width="1" opacity="0.1"/></svg>');
    color: var(--secondary);
    line-height: 1.8;
    font-size: 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
#topnav {
    background: rgba(237, 225, 199, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary);
    color: var(--paper);
}

.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logout-btn {
    background: #e74c3c;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 搜索栏 */
.search-box {
    display: flex;
    max-width: 500px;
    height: 60px; /* 高度增加 */
    margin: 2rem auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.search-box label {
    flex: 1;
    display: block;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    border: none;
    font-size: 1.1rem;
}

.search-input:focus {
    outline: none;
    box-shadow: inset 0 0 8px rgba(107, 79, 74, 0.1);
}

.search-button {
    padding: 0 2rem;
    background: linear-gradient(135deg, #FFB88C, #FF6B6B);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #F5E6E3, #D7C8C6);
}

/* 图标样式 (保留原有内联样式) */
.icon-sousuo1 {
    transition: transform 0.3s ease;
    font-size: 28px !important; /* 放大图标 */
    vertical-align: middle;
}

.search-button:hover .icon-sousuo1 {
    transform: scale(1.1);
}

/* 轮播图 */
.carousel {
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-img {
        height: 270px;
    }
}